<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$rs["sTitle"]//标题?>_<?=SITE_NAME?>_<?=$scfg['base']['title']?></title>
<meta name="keywords" content="<?=$rs["sTitle"].",".implode(",",$catNameArr)//标题?>,<?=$scfg['base']['keywords']?>" />
<meta name="description" content="<?=$scfg['base']['description']?>" />
<script type="text/javascript"> 
try{document.domain="<?=SITE_DOMAIN?>";}catch (e){}; 
var __scfg__ = { staticUrl:"<?=surl::get("static");?>", thisPage:"pct" }; 
</script>
<script type="text/javascript" src="<?=surl::get("static");?>www.js"></script>
<link href="<?=surl::get("static");?>style/pct.style/<?=((int)($rs['cPctStyle']))?>.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<? tpl::import('header.all.tpl.php');?>
<div id="Content">
  <div class="cats">
    <div class="fleft"> 
     <a href="<?=surl::get("search");?>index.php" target="_blank">所有分类</a> >>
		 <? 
			$url = surl::get("search")."index.php";
			$tmp = array();
			if(is_array($catNameArr))
			{
				foreach($catNameArr as $k=>$v)
				{
					$tmp[$k] = $catIdArr[$k];
				?>
					<a href="<?=surl::en($url,$tmp)?>" target="_blank"><?=$v?></a> >>
				<?
				}//end foreach
			}//end if
         ?>商品详情 
     </div>
    <div class="fright"> <img src="<?=surl::get("static");?>imgs/report.gif" hspace="5" border="0" align="absmiddle"> <a href="http://bbs.pailego.com/viewthread.php?tid=10&extra=page%3D1" target="_blank"> 新手购买演示 </a> </div>
  </div>
  <div class="fclear"></div>
  <div class="PctTitle"> <span class="b big">
    <?=$rs["sTitle"]//标题?>
    </span> <span class="b big orange"> <img src="<?=surl::get("static");?>imgs/point_btn_03.gif" width="12" height="15" border="0" align="absmiddle"/>
    <?=pct::cSellType($rs["cSellType"])?>
    </span> </div>
  <div class="info">
    <!--begin info_pic-->
    <div class="pic">
      <div id="infoPicImg"
            	hre-f="<?=surl::get("shop")."pctBigImg.php?id={$id}&sTitle=".urlencode($rs['sTitle'])?>"
            	src="<?=$img[1]?>"> </div>
      <div> <img height="14" alt="点击查看大图" hspace="10" src="<?=surl::get("static");?>imgs/big.gif" width="13" align="absmiddle" border="0" /> <a href="<?=surl::get("shop");?>pctBigImg.php?id=<?=$id?>&sTitle=<?=urlencode($rs["sTitle"])?>" target="_blank"><strong>点击查看大图</strong></a> </div>
      <div> 您可以：<img src="<?=surl::get("static");?>imgs/save.gif" width="13" height="12" /> <a href="<?=pct::url_fav($id)?>" target="_blank">收藏本商品</a> </div>
    </div>
    <!--begin info_show-->
    <div class="show">
      <div class="CommMess">
        <div> 
        	  <span class="font_gray"><?=pct::cSellType_text($rs["cSellType"])?>：</span> 
              <span id="el_dwPrice_bin" class="price"><?=$rs["dwPrice_bin"]//当前价前?></span> &nbsp;元&nbsp;
			  <? if($rs["cSellType"] == 2){?>
              <img src="<?=surl::get("static");?>imgs/refresh.gif"/> <a href="javascript:oPLoad.price();">刷新价格</a>
              <? }?>
        </div>
        <? if($rs["cSellType"] == 2){?>
        <div> 
        	<span class="font_gray">起拍价格：</span> 
            <span><?=$rs["dwPrice_auc"]//起拍价格?></span> 元&nbsp;&nbsp; &nbsp; 
            <span class="font_gray">加价幅度：</span> 
            <span><?=$rs["dwPriceToAdd"]//起拍价格?></span> 元&nbsp; 
        </div>
        <? }?>
        <div> 
        	<span class="font_gray">运 &nbsp;&nbsp; 费：</span>
            <?=implode('&nbsp;',pct::cTransportType($rs,1))?>
        </div>
        <!--出价按钮 -->
        <div id="td_buy_button" class="tcenter" style="border:none;"> 
            <? if($rs["cSellType"] == 1){?>
        	<img src="<?=surl::get("static");?>imgs/fixupBuy.gif" style="cursor:hand" onclick="buy(gid,1)" onmouseover="showBuyOver(this)" onmouseout="showBuyOut(this)" />
			<? }else{?>
            <img src="<?=surl::get("static");?>imgs/driftBuy.gif" style="cursor:hand" onclick="buy(gid,2)" onmouseover="showBuyOver(this)" onmouseout="showBuyOut(this)" /> 
			<? }?>       
        </div>
        <? /*
        <div class="tcenter" style="border:none;"> 
        	<img src="<?=surl::get("static");?>imgs/credit/sellGold1.gif" align="absmiddle" />
            <a  href="<?=surl::get("shop");?>pctReputation.php?id=<?=$id?>" target="_blank"> 已经有人给了好评哦! </a> 
        </div>*/?>
        <div> 
          <span class="font_gray">销售情况：</span> 
          售出<span id="el_dwNumSell" class="number b orange"><?=$rs["dwNumSell"]?></span>件；
          还剩<span id="el_dwNum_dwNumSell" class="number b orange"><?=($rs["dwNum"]-$rs["dwNumSell"])?></span>件 
        </div>
        <div> <span class="font_gray">浏 览 量：</span> 已有&nbsp; <span class="number b orange" id="el_visitCount">加载中...</span> &nbsp; 人关注 </div>
        <div> <span class="font_gray">发 货 地：</span> <span id="city">
          <?=$area?>
          </span> </div>
        <div class="position"> <span class="font_gray">新旧程度：</span> <span class="PositionShow">
          <?=pct::cNewType($rs["cNewType"])?>
          </span> </div>
        <div class="position" style="border:none;"> <span class="font_gray">剩余时间：</span> 
          <span class="PositionShow" id="dwValidDurationExt_h"></span> 
        </div>
      </div>
    </div>
    <!--begin info_urs-->
    <div class="urs" id="info_urs"></div>
  </div>
  <div class="fclear"></div>
  <!--info End-->
  <div>
    <ul id="AuctionList">
      <li class="li_here" id="DescShow_show"> <a href="javascript:showList('DescShow')"> 详细信息 </a></li>
      <li id="Others_show"> <a href="javascript:showList('Others')"> 其他信息 </a></li>
      <? if($rs["cSellType"] == 1){?>
      <li id="SellCredit_show"> <a href="javascript:showList('SellCredit')"> 销售记录 </a></li>
      <? }elseif($rs["cSellType"] == 2){?>   
      <li id="SellCredit_show"> <a href="javascript:showList('SellCredit')"> 竞价记录 </a></li>
      <? }?>
      <li id="CreditShow_show"> <a href="javascript:showList('CreditShow')"> 卖家信用 </a></li>
      <li id="PayMent_show"> <a href="javascript:showList('PayMent')"> 付款方式 </a></li>
    </ul>
  </div>
  <!--属性-->
  <div id="PctAttr" class="relative">
    <div class="note"> 属性信息，仅供用户参考；商品详细情况，请和卖家联系！ </div>
  </div>
  <!--详细信息-->
  <div id="DescShow">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" id="DescShowTd"><?=$rs["sDesc"]?></td>
      </tr>
    </table>
    <script type="text/javascript">
	var a = _.e("DescShowTd");a.innerHTML = UBB.html(a.innerHTML);
	</script>
  </div>
  <!--其他信息-->
  <div id="Others" style="display:none;">
    <ul>
      <li> <b>剩余时间：</b> <span id="dwValidDurationExt_m">成交结束</span></li>
      <li> <b>开始时间：</b> <?=g::time($rs["uploadDate"])?> </li>
      <li> <b>结束时间：</b> <?=g::time($rs["dwValidDurationExt"])?> </li>
      <li> <b>保 &nbsp;&nbsp; 修：</b> <?=pct::cInvoiceType($rs["cInvoiceType"])?> </li>
      <li> <b>发 &nbsp;&nbsp; 票：</b> <?=pct::cRepairType($rs["cRepairType"])?> </li>
      <li> <b>付款方式：</b> <?=implode(",",pct::gPayWay($rs))?> </li>
      <li> <b>特別標籤：</b> <?=implode(",",pct::gFlag($rs))?> </li>
      <li> <b>编 &nbsp;&nbsp; 号：</b> <?=$rs['gYmd'].$rs['gid']?></li>
    </ul>
  </div>
  <? if($rs["cSellType"] == 1){?>
  <!--销售记录-->
  <div id="SellCredit">
    <div class="title">
      <div class="TitleInfo"> 销售记录 </div>
      <div class="TitleTop"><a href="#top"></a></div>
    </div>
    <div id="record">
      <div id="price">
        <ul>
          <li>商品价格: <b class="shopPrize" name="html_tem_price" id="html_tem_price"><?=$rs["dwPrice_bin"]//当前价前?></b> 元</li>
          <li>剩余时间：<span id="dwValidDurationExt_f">加载中..</span></li>
          <li id="html_tem_buyButton">
          	<img src="<?=surl::get("static");?>imgs/miniFixupBuy.gif" style="cursor:hand" onclick="buy2(gid,1)"  onmouseover="showBuyOver(this)" onmouseout="showBuyOut(this)">
          </li>
        </ul>
      </div>
      <div class="clear"></div>
      <div id="htmlTemExchangeLog" style="padding:10px 10px 0pt; text-align: center;"></div>
    </div>
  </div>
  <? }elseif($rs["cSellType"] == 2){?>
  <!--竞价记录-->
  <div id="SellCredit">
    <div class="title">
      <div class="TitleInfo"> 竞价记录 </div>
      <div class="TitleTop"><a href="#top"></a></div>
    </div>
    <div id="record">
      <div id="price">
        <ul>
          <li>商品价格: <b class="shopPrize" name="html_tem_price" id="html_tem_price"><?=$rs["dwPrice_bin"]//当前价前?></b> 元</li>
          <li>剩余时间：<span id="dwValidDurationExt_f">加载中..</span></li>
          <li id="html_tem_buyButton">
          	<img src="<?=surl::get("static");?>imgs/miniDriftBuy.gif" style="cursor:hand" onclick="buy2(gid,2)"  onmouseover="showBuyOver(this)" onmouseout="showBuyOut(this)">
          </li>
        </ul>
      </div>
      <div class="clear"></div>
      <div id="htmlTemExchangeLog" style="padding:10px 10px 0pt; text-align: center;"></div>
    </div>
  </div>
  <? }?>
  <!--卖家推荐商品-->
  <div id="Commend">
    <div class="title">
      <div class="TitleInfo"> 卖家推荐 </div>
      <div class="TitleTop"><a href="#top"></a></div>
    </div>
    <div>
      <ul class="CommendList" id="CommendList_id"></ul>
      <div><a href="<?=shop::url($rs["urs"])?>" target="_blank"><img src="<?=surl::get("static");?>imgs/shopGo.gif" /></a></div>
      <div class="fclear"></div>
    </div>
  </div>
  <div class="clear"></div>
  <!--拍友留言-->
  <div id="Message">
    <div class="title">
      <div class="TitleInfo"> 网友留言 </div>
      <div class="TitleTop"><a href="#top"></a></div>
    </div>
    <div id="LwordMsg" style="padding: 10px; text-align:left;"></div>
  </div>
  <!--卖家信用-->
  <div id="CreditShow" style="display:none;">
    <div class="title">
      <div class="TitleInfo"> 卖家信用 </div>
      <div class="TitleTop"><a href="#top"></a></div>
    </div>
    <div id="CreditShow_id"></div>
  </div>
  <!--付款方式-->
  <div id="PayMent" style="display:none;"></div>
</div>
<?
unset($rs["gIp"]);
unset($rs["cAutoReload"]);
unset($rs["gYmd"]);
unset($rs["gid"]);
unset($rs["sDesc"]);
$time 		= time();
$oSaleState = $rs["uploadDate"]<$time && $rs["dwValidDurationExt"]>$time 
				? 'true'
				: 'false';
?>
<script type="text/javascript">
var _oPct_ 		= <?=json::encode($rs)//g::phpEnCode(json::encode($rs));?>;
//状态
var oSaleState 	= <?=$oSaleState?>;
var gid = id 	= '<?=$id?>';
var buyUrl 		= '<?=surl::get("my")."buy.php"?>';
//商品的大图
Player.image("infoPicImg",200);
//加载相关信息
oPLoad.init();
//倒记时
</script>
<!--Main End-->
<? tpl::import('foot.all.tpl.php');?>
</body>
</html>